<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>叩丁狼客户关系管理系统-登录</title>
    <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/js/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/js/Ionicons/css/ionicons.min.css">
    <link rel="stylesheet" href="/js/adminlte/css/AdminLTE.min.css">
    <link rel="stylesheet" href="/js/adminlte/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="/js/adminlte/css/fonts.googleapis.com.css">
    <script type="text/javascript" src="/static/js3/jQuery-2.1.4/jquery-2.1.4.min.js"></script>

    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap/js/bootstrap.js"></script>
    <script src="/js/adminlte/js/adminlte.min.js"></script>
    <script src="/js/plugins/twbsPagination/jquery.twbsPagination.min.js"></script>
    <script>
        $(function () {
            $('#btn1').click(function () {
                var value = 0;
                var time1 = setInterval(function () {
                    value += 1;
                    $('#progress-bar').html(value + '%');
                    $('#progress-bar').css("width", value + '%');
                    if (value == 100) {
                        clearInterval(time1);
                        $.post('/login.html',$('#loginForm').serialize(),function (data) {
                            if (data.success){
                                location.href='/employee/list.do';
                            }else {
                                alert(data.msg)
                            }
                        })
                    }
                }, 50);
            })
        })
    </script>
    <script>
        $(function () {
            $('#btnsubmit').click(function () {
                $.post('/login.html',$('#loginForm').serialize(),function (data) {
                    if (data.success){
                        location.href='/employee/list.do';
                    }else {
                        alert(data.msg)
                    }
                })
            })
        })
    </script>
</head>
<body class="hold-transition login-page">
<div class="login-box">
    <div class="login-logo">
        <a href="http://www.wolfcode.cn"><b>叩丁狼</b>CRM</a>
    </div>
    <div class="login-box-body">
        <p class="login-box-msg">请输入账号密码</p>

        <form method="post" id="loginForm">
            <div class="form-group has-feedback">
                <input type="text" class="form-control" placeholder="请输入账号" name="username" value="admin">
                <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
                <input type="password" class="form-control" placeholder="请输入密码" name="password" value="1">
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
            </div>
            <div class="row">
                <div class="col-xs-4">
                    <button type="button" id="btnsubmit" class="btn btn-primary btn-block btn-flat submitBtn">快速登录</button>
                </div>(充值会员后可使用)
            </div></br>

        </form>
        <button id="btn1" class="btn-success">普通登录</button>
        <div class="progress">
            <div id="progress-bar" class="progress-bar progress-bar-striped progress-bar-success active" role="progressbar"
                 aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
                <span class="sr-only">0 Complete</span>
            </div>
        </div>
    </div>
</div>

</body>
</html>
